-- GENERATED SPELL FOR [Dark Ranger Lyana] --


function spell0_23778(pUnit, Event) --@Black Arrow,n/a--
pUnit:FullCastSpellOnTarget(64102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23778', 2000, 1)
end

function Sorts_23778(pUnit, Event)
local choix_sorts_23778 = math.random(0, 0)
if choix_sorts_23778 == 0 then
pUnit:RegisterEvent('spell0_23778', 1, 1)
end
end

function mob23778_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23778', math.random(1500, 3000), 1)
end

function mob23778_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23778_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23778_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23778, 1, 'mob23778_Action')
RegisterUnitEvent(23778, 2, 'mob23778_Leave')
RegisterUnitEvent(23778, 3, 'mob23778_Kill')
RegisterUnitEvent(23778, 4, 'mob23778_Die')
